---
# tasks file for vnc
- name: x11vnc package
  ansible.builtin.include_tasks:
    file: "{{ ansible_distribution_release }}.yml"

- name: x11vnc daemon
  ansible.builtin.template:
    src: x11vnc.service.j2
    dest: /etc/systemd/system/x11vnc.service
  notify:
  - restart x11vnc

- name: x11vnc password
  ansible.builtin.copy:
    src: x11vnc.pass
    dest: /etc/x11vnc.pass

- name: x11vnc enabled
  ansible.builtin.service:
    name: x11vnc
    enabled: yes
